package com.xx.service;

import com.github.pagehelper.PageInfo;
import com.xx.entity.Categories;
import com.xx.entity.CategoriesList;

import java.util.List;


public interface ICategoriesService{
    Categories queryById(Integer categoryId);

    PageInfo<Categories> queryByPage(Categories categories, Integer pageNum);

    int insert(Categories categories);

    int update(Categories categories);

    int deleteById(Integer categoryId);

    List<CategoriesList> list();
}
